package com.lin.missyou.api.v1;


import com.lin.missyou.manager.rocketmq.ProducerSchedule;
import com.lin.missyou.model.Test;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private Test test;
//
//    @Autowired
//    private ProducerSchedule producerSchedule;

    @GetMapping("")
    public void getDetail(){
        System.out.println(this.test);
    }


    @GetMapping("/send/mq")
    public void sendMsg() throws Exception {
//        producerSchedule.send("TopicTest", "aaaabbbcx小撒");
    }

}
